#ifndef TIMERFUNC_HPP_
#define TIMERFUNC_HPP_

typedef void (*timer_callback)(sigval_t param) ; // 定时器回调函数

struct timing_manager {
	int (*init)(timer_callback my_func, void *my_param, timer_t *pxTimer);
    int (*setUp)(timer_t timer, int millisecond, bool interval_flag);
    int (*stop)(timer_t timer);
	int (*tearDown)(timer_t timer);
};

struct timing_manager* get_timing(void);


void timer_test(void);


#endif 


